//自定义组件全局自动注册
import Vue from 'vue'
import Select from "@/components/Select";
import DatePicker from "@/components/DatePicker";
import QuickQuery from "@/components/QuickQuery";
import MultiQuery from "@/components/MultiQuery";
import AnnexesFile from "@/components/AnnexesFile";
import ImageUpload from "@/components/ImageUpload";

const components = {
    install(Vue) {
        Vue.component('rayd-select', Select)
        Vue.component('rayd-date-picker', DatePicker)
        Vue.component('rayd-quick-query', QuickQuery)
        Vue.component('rayd-multi-query', MultiQuery)
        Vue.component('rayd-file', AnnexesFile)
        Vue.component('rayd-image-upload', ImageUpload)
    }
}

// if (typeof window !== 'undefined' && window.Vue) {
//     install(window.Vue);
//     console.log('auto-regist-1')
// }

Vue.use(components);